if (NOT 2 IN_LIST AMReX_SPACEDIM)
   return ()
endif ()

set(_sources advect_2d_mod.F90 compute_flux_2d.f90 slope_2d.f90)
list(TRANSFORM _sources PREPEND Src_2d/ )

list(APPEND _sources amr_data_mod.F90 averagedown_mod.F90 bc_mod.F90
   compute_dt_mod.F90 evolve_mod.F90 fillpatch_mod.F90 fmain.F90
   initdata.F90 my_amr_mod.F90 plotfile_mod.F90 tagging_mod.F90)

list(TRANSFORM _sources PREPEND Source/ )

list(APPEND _sources
   Exec/SingleVortex/face_velocity_2d.F90
   Exec/SingleVortex/Prob.f90
   )

file(GLOB_RECURSE _input_files LIST_DIRECTORIES false
   ${CMAKE_CURRENT_LIST_DIR}/input* )


setup_test(2 _sources _input_files HAS_FORTRAN_MODULES)

unset(_sources)
unset(_input_files)
